Ext.define('MyApp.model.DepartmentModel',{
	extend:'Ext.data.Model',
	fields:[{
		name:'id'//
	},{
		name:'deptName'
	},{
		name:'parentDeptId'
	},{
		name:'deptDesc'
	},{
		name:'displayOrder'
	},{
		name:'createTime',
		type:'date',
		convert:function(v,record){
			if(!Ext.isEmpty(v)){
				return new Date(v);
			}else{
				return null;
			}
		}
	},{
		name:'lastUpdateTime',
		type:'date',
		convert:function(v,record){
			if(!Ext.isEmpty(v)){
				return new Date(v);
			}else{
				return null;
			}
		}
	},{
		name: 'isDeleted',//是否启用
		type: 'boolean'
	}
]
});